﻿@using PMS.Services.Authentication.Externel
@{
    ViewData["Title"] = "错误提示";
    string ErrMsg = ViewBag.ErrMsg as string ?? string.Empty;
    string ReturnUrl = ViewBag.ReturnUrl as string;
    if (string.IsNullOrEmpty(ReturnUrl))
        ReturnUrl = @Url.RouteUrl("HomePage");
    var errors = ExternalAuthorizerHelper.RetrieveErrorsToDisplay();
}
@section CssLinks{
    <link href="~/lib/PearAdminLayui/component/pear/css/pear.css" rel="stylesheet" />
    <link href="~/lib/PearAdminLayui/admin/css/other/error.css" rel="stylesheet" />
}
@section CssStyles{
<style type="text/css">
    .external-auth-errors p{ font-size: 14px; margin-bottom: 1rem; }
</style>
}
<div class="content">
    <img src="~/lib/PearAdminLayui/admin/images/500.svg" alt="">
    <div class="content-r">
        <h1>500</h1>
        <p>抱歉，服务出错了</p>
        @if (!string.IsNullOrEmpty(ErrMsg))
        {
            <p>@ErrMsg</p>
        }
        @if (errors != null && errors.Count > 0)
        {
            <div class="external-auth-errors">
                @foreach (var error in errors)
                {
                    <p>@error</p>
                }
            </div>
        }
        <a href="@ReturnUrl" class="pear-btn pear-btn-primary">返回</a>
    </div>
</div>


